package com.learn.training.multithread.chapter6.minchapter10.demo1;

import java.util.concurrent.atomic.AtomicLong;

public class IdGenerator {
    AtomicLong atomicLong = new AtomicLong(0);

    public long getNextId() {
        return atomicLong.incrementAndGet();
    }
}
